	package br.gendi.dialog;

import org.eclipse.swt.SWT;
import org.eclipse.swt.graphics.Point;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.swt.widgets.TabFolder;
import org.eclipse.swt.widgets.TabItem;
import org.eclipse.swt.widgets.Text;

public class Configuration {

	private Shell sShell = null;  //  @jve:decl-index=0:visual-constraint="10,10"
	private TabFolder tabFolder = null;
	private Composite composite = null;
	private Composite composite2 = null;
	private Label label = null;
	private Text text = null;
	private Composite composite1 = null;
	private Button button = null;
	private Button button1 = null;
	private Button button2 = null;
	private Label label2 = null;
	private Text text1 = null;
	private Label label1 = null;
	private Button checkBox = null;

	public Configuration() {
		super();
		createSShell();
	}
	
	/**
	 * This method initializes sShell
	 */
	private void createSShell() {
		GridLayout gridLayout = new GridLayout();
		gridLayout.horizontalSpacing = 2;
		gridLayout.marginWidth = 2;
		gridLayout.marginHeight = 2;
		gridLayout.verticalSpacing = 2;
		sShell = new Shell();
		sShell.setText("Shell");
		createTabFolder();
		sShell.setLayout(gridLayout);
		sShell.setSize(new Point(312, 200));
		sShell.open();
	}
	
	/**
	 * This method initializes tabFolder	
	 *
	 */
	private void createTabFolder() {
		GridData gridData = new GridData();
		gridData.horizontalAlignment = GridData.FILL;
		gridData.grabExcessHorizontalSpace = true;
		gridData.grabExcessVerticalSpace = true;
		gridData.verticalAlignment = GridData.FILL;
		tabFolder = new TabFolder(sShell, SWT.NONE);
		tabFolder.setLayoutData(gridData);
		createComposite();
		createComposite2();
		TabItem tabItem = new TabItem(tabFolder, SWT.NONE);
		tabItem.setText("General");
		tabItem.setControl(composite);
		TabItem tabItem1 = new TabItem(tabFolder, SWT.NONE);
		tabItem1.setText("Paramethers");
		tabItem1.setControl(composite2);
	}

	/**
	 * This method initializes composite	
	 *
	 */
	private void createComposite() {
		GridData gridData7 = new GridData();
		gridData7.grabExcessHorizontalSpace = true;
		gridData7.verticalAlignment = GridData.CENTER;
		gridData7.horizontalSpan = 2;
		gridData7.horizontalAlignment = GridData.FILL;
		GridData gridData6 = new GridData();
		gridData6.horizontalAlignment = GridData.BEGINNING;
		gridData6.verticalAlignment = GridData.CENTER;
		GridData gridData5 = new GridData();
		gridData5.horizontalAlignment = GridData.FILL;
		gridData5.grabExcessHorizontalSpace = true;
		gridData5.horizontalSpan = 2;
		gridData5.verticalAlignment = GridData.CENTER;
		GridData gridData4 = new GridData();
		gridData4.horizontalAlignment = GridData.FILL;
		gridData4.grabExcessHorizontalSpace = true;
		gridData4.horizontalSpan = 2;
		gridData4.verticalAlignment = GridData.CENTER;
		GridData gridData3 = new GridData();
		gridData3.horizontalAlignment = GridData.BEGINNING;
		gridData3.verticalAlignment = GridData.CENTER;
		GridData gridData2 = new GridData();
		gridData2.horizontalAlignment = GridData.BEGINNING;
		gridData2.verticalAlignment = GridData.CENTER;
		GridLayout gridLayout1 = new GridLayout();
		gridLayout1.numColumns = 3;
		composite = new Composite(tabFolder, SWT.NONE);
		composite.setLayout(gridLayout1);
		label = new Label(composite, SWT.NONE);
		label.setText("Name:");
		label.setLayoutData(gridData3);
		text = new Text(composite, SWT.BORDER);
		text.setLayoutData(gridData5);
		label2 = new Label(composite, SWT.NONE);
		label2.setText("URL:");
		label2.setLayoutData(gridData2);
		text1 = new Text(composite, SWT.BORDER);
		text1.setLayoutData(gridData4);
		label1 = new Label(composite, SWT.NONE);
		label1.setText("Active:");
		label1.setLayoutData(gridData6);
		checkBox = new Button(composite, SWT.CHECK);
		checkBox.setLayoutData(gridData7);
		Label filler3 = new Label(composite, SWT.NONE);
		Label filler2 = new Label(composite, SWT.NONE);
		createComposite1();
	}

	/**
	 * This method initializes composite2	
	 *
	 */
	private void createComposite2() {
		composite2 = new Composite(tabFolder, SWT.NONE);
		composite2.setLayout(new GridLayout());
	}

	/**
	 * This method initializes composite1	
	 *
	 */
	private void createComposite1() {
		GridData gridData1 = new GridData();
		gridData1.grabExcessHorizontalSpace = true;
		gridData1.horizontalAlignment = GridData.END;
		gridData1.verticalAlignment = GridData.END;
		gridData1.grabExcessVerticalSpace = true;
		GridLayout gridLayout2 = new GridLayout();
		gridLayout2.numColumns = 3;
		gridLayout2.verticalSpacing = 3;
		gridLayout2.marginWidth = 3;
		gridLayout2.marginHeight = 3;
		gridLayout2.horizontalSpacing = 3;
		composite1 = new Composite(composite, SWT.NONE);
		composite1.setLayout(gridLayout2);
		composite1.setLayoutData(gridData1);
		button = new Button(composite1, SWT.NONE);
		button.setText("Save");
		button1 = new Button(composite1, SWT.NONE);
		button1.setText("Refresh");
		button2 = new Button(composite1, SWT.NONE);
		button2.setText("Delete");
	}

}
